﻿using CommonDevelop;
using CommonDevelop.DB;
using ManageDB;
using System;
using System.Linq.Expressions;

namespace ManageRepository
{
    /// <summary>
    /// 附件数据层接口
    /// </summary>
    public interface IEncRepository : IBase<Base_Enc>
    {
        //没有扩展行为
    }

    /// <summary>
    /// 附件数据层
    /// </summary>
    public class EncRepository : DBBase<Base_Enc>, IEncRepository
    {
        public override Expression<Func<Base_Enc, bool>> WhereKeyWord(string keyword)
        {
            Expression<Func<Base_Enc, bool>> expression = a => a.EncObjectId == keyword;
            return expression;
        }
    }
}
